package com.hnisi.decorators
{
	/**
	 * @author 黄记新, 下午3:11:25
	 */
	import flash.display.Sprite;
	import flash.geom.Rectangle;
	
	
	public class DrawMouseMoveRect implements IDraw
	{
		public function DrawMouseMoveRect()
		{
		}
		
		public function drawRect(rect:Rectangle, drawingLayer:Sprite):void
		{
			drawingLayer.graphics.clear();
			drawingLayer.graphics.lineStyle(1, 0x369DDF,1);		//藍色
			drawingLayer.graphics.beginFill(0x4BBDF1, 0.5);
			
			drawingLayer.graphics.drawRect(rect.x, rect.y, rect.width, rect.height);
		}
		
		public function cleanup(drawingLayer:Sprite):void
		{
			drawingLayer.graphics.clear();
		}
	}
}